# 自动生成头文件和源文件的方法

## 目的

> 该方法可以减少部分频繁的编写操作, 加快代码编写效率

## 方法分析

```
COMMAND = cd /root/GIT/neovim/build/src/nvim && 
/usr/bin/gcc-7 /root/GIT/neovim/src/nvim/event/loop.c -E -o 
/root/GIT/neovim/build/src/nvim/auto/event/loop.i -D_GNU_SOURCE 
-DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 
-DDO_NOT_DEFINE_EMPTY_ATTRIBUTES 
-I/root/GIT/neovim/build/config 
-I/root/GIT/neovim/src 
-I/root/GIT/neovim/.deps/usr/include 
-I/root/GIT/neovim/.deps/usr/include 
-I/root/GIT/neovim/.deps/usr/include 
-I/root/GIT/neovim/.deps/usr/include 
-I/root/GIT/neovim/.deps/usr/include 
-I/root/GIT/neovim/.deps/usr/include 
-I/root/GIT/neovim/.deps/usr/include 
-I/usr/include 
-I/root/GIT/neovim/build/src/nvim/auto 
-I/root/GIT/neovim/build/include 
-I/root/GIT/neovim/.deps/usr/include/luajit-2.1 
-O2 -DNDEBUG && 
/root/GIT/neovim/.deps/usr/bin/luajit 
/root/GIT/neovim/src/nvim/generators/gen_declarations.lua 
/root/GIT/neovim/src/nvim/event/loop.c 
/root/GIT/neovim/build/src/nvim/auto/event/loop.c.generated.h 
/root/GIT/neovim/build/include/event/loop.h.generated.h 
/root/GIT/neovim/build/src/nvim/auto/event/loop.i
```
